package com.dong.es.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @description: 配置属性
 * @author: 陈瑞东
 * @create: 2022-12-09 11:23
 */
@ConfigurationProperties(prefix = "es")
public class EsProperties {

    // ES地址（需要加端口号）
    private List<String> hosts;
    // 用户名
    private String username;
    // 密码
    private String password;
    // 是否打印输出语句
    private boolean print;
    // 是否开启SSL查询
    private boolean ssl;

    public List<String> getHosts() {
        return hosts;
    }

    public void setHosts(List<String> hosts) {
        this.hosts = hosts;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isPrint() {
        return print;
    }

    public void setPrint(boolean print) {
        this.print = print;
    }

    public boolean isSsl() {
        return ssl;
    }

    public void setSsl(boolean ssl) {
        this.ssl = ssl;
    }
}
